﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Login.ViewModels;
using Telerik.Windows.Controls;

namespace Login.Views
{
    /// <summary>
    /// Interaction logic for RightPane.xaml
    /// </summary>
    [Export]
    public partial class RightPane : RadDocumentPane, IActiveAware
    {
        public RightPane()
        {
            InitializeComponent();
        }
        public event EventHandler IsActiveChanged;

        protected override void OnIsActiveChanged()
        {
            base.OnIsActiveChanged();
            IsActiveChanged?.Invoke(this, EventArgs.Empty);
        }

        [Import]
        public RightPaneViewModel viewModel
        {
            get { return DataContext as RightPaneViewModel; }
            set { DataContext = value; }
        }

    }
}
